import service from "@/server/server.ts";
import type * as T from "./types.ts";

export async function login(data: T.ILoginParams) {
  return await service({
    url: "/login",
    headers: {
      isToken: false,
    },
    method: "post",
    data,
  });
}
